package com.test.application.spring.configuration;

import com.test.application.spring.configuration.defualt.MyConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 描述: 自动配置 默认配置测试
 * 作者: yanruizhi
 * 时间: 2024/9/20 10:04
 */
@RestController
@Slf4j
public class ConfigurationController {

    @Resource
    private MyConfig myConfig;

    @RequestMapping("/test/defaultConfig")
    public MyConfig getConfig(){
        log.info("获取配置信息：{}",myConfig);
        return myConfig;
    }
}
